// 管理员接口管理
import req from "@/axios";
// 接口登录
export function login(username = "admin", password = "admin") {
  return req.post("/admin/login", {
    username,
    password,
  });
}

export function getInfo() {
  return req.post("/admin/getInfo");
}

// 退出接口
export function logout(token) {
  return req.post("/admin/logout", {
    token,
  });
}
